package com.kinoshita.common.exception;

import com.kinoshita.common.status.StatusCode;

public class SystemException extends RuntimeException {

    private StatusCode statusCode;

    public SystemException(StatusCode statusCode) {
        super(statusCode.getMsg());
        this.statusCode  = statusCode;
    }

    public StatusCode getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(StatusCode statusCode) {
        this.statusCode = statusCode;
    }
}
